package com.px.auditRecord.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import io.swagger.annotations.ApiModelProperty;
import com.px.common.annotation.Excel;
import com.px.common.core.domain.BaseEntity;

/**
 * 黑白名单控制对象 audit_black_white
 * 
 * @author WRJ
 * @date 2024-08
 */
@Data
public class AuditBlackWhite extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    @ApiModelProperty(value = "")
    private Long id;

    /** 身份证号 */
    @ApiModelProperty(value = "身份证号")
    @Excel(name = "身份证号")
    private String idCard;

    /** 账号 */
    @ApiModelProperty(value = "账号")
    @Excel(name = "账号")
    private String userName;

    /** 无人机SN */
    @ApiModelProperty(value = "无人机SN")
    @Excel(name = "无人机SN")
    private String droneSn;

    /** 无人机SN */
    @ApiModelProperty(value = "无人机SN(外部)")
    @Excel(name = "无人机SN(外部)")
    private String droneSnExternal;

    /** 姓名 */
    @ApiModelProperty(value = "姓名")
    @Excel(name = "姓名")
    private String name;

    /** 手机号 */
    @ApiModelProperty(value = "手机号")
    @Excel(name = "手机号")
    private String phoneNumber;

    /** 控制类型.1=人员控制,2=账号控制,3=设备控制 */
    @ApiModelProperty(value = "控制类型.1=人员控制,2=账号控制,3=设备控制")
    @Excel(name = "控制类型.1=人员控制,2=账号控制,3=设备控制")
    private String controlType;

    /** 控制模式.1=白名单,2=黑名单 */
    @ApiModelProperty(value = "控制模式.1=白名单,2=黑名单")
    @Excel(name = "控制模式.1=白名单,2=黑名单")
    private String controlMode;

    /** 生效时间起 */
    @ApiModelProperty(value = "生效时间起")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "生效时间起", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startDate;

    /** 生效时间止 */
    @ApiModelProperty(value = "生效时间止")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "生效时间止", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endDate;

    /** 创建人所属部门ID */
    @ApiModelProperty(value = "创建人所属部门ID")
    @Excel(name = "创建人所属部门ID")
    private Long deptId;

    /** 型号 */
    private List<String> ids = new ArrayList<>();


}
